home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / Xpm / pixmap / X11 / Xfuncs.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  2KB  |  56 lines

  1. /*
  2.  * $XConsortium: Xfuncs.h,v 1.8 91/04/17 09:27:52 rws Exp $
  3.  * 
  4.  * Copyright 1990 by the Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software and its
  7.  * documentation for any purpose and without fee is hereby granted, provided 
  8.  * that the above copyright notice appear in all copies and that both that 
  9.  * copyright notice and this permission notice appear in supporting 
  10.  * documentation, and that the name of M.I.T. not be used in advertising
  11.  * or publicity pertaining to distribution of the software without specific, 
  12.  * written prior permission. M.I.T. makes no representations about the 
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  */
  17.  
  18. #ifndef _XFUNCS_H_
  19. #define _XFUNCS_H_
  20.  
  21. #include <X11/Xosdefs.h>
  22.  
  23. #ifdef X_USEBFUNCS
  24. void bcopy();
  25. void bzero();
  26. int bcmp();
  27. #else
  28. #if (__STDC__ && !defined(X_NOT_STDC_ENV) && !defined(sun) && !defined(macII)) || defined(SVR4) || defined(hpux) || defined(_IBMR2)
  29. #include <string.h>
  30. #define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))
  31. #define bzero(b,len) memset(b, 0, (size_t)(len))
  32. #define bcmp(b1,b2,len) memcmp(b1, b2, (size_t)(len))
  33. #else
  34. #ifdef sgi
  35. #include <bstring.h>
  36. #else
  37. #ifdef SYSV
  38. #include <memory.h>
  39. #if defined(_XBCOPYFUNC) && !defined(macII)
  40. #define bcopy _XBCOPYFUNC
  41. #define _XNEEDBCOPYFUNC
  42. #endif
  43. void bcopy();
  44. #define bzero(b,len) memset(b, 0, len)
  45. #define bcmp(b1,b2,len) memcmp(b1, b2, len)
  46. #else /* bsd */
  47. void bcopy();
  48. void bzero();
  49. int bcmp();
  50. #endif /* SYSV */
  51. #endif /* sgi */
  52. #endif /* __STDC__ and relatives */
  53. #endif /* X_USEBFUNCS */
  54.  
  55. #endif /* _XFUNCS_H_ */
  56.